package com.pc.mapper;



import com.pc.enrty.User;
import com.pc.pojo.Basic;

import java.util.ArrayList;

public interface UserMapper {
    /**
     * 根据username，password，查询user表信息
     * @return User
     */
    ArrayList<User> selectByUsernameAndPassword(User user);

    ArrayList<User> selectByUsername(User user);

    /**
     * 插入用户表，username，password，email
     * @param user
     * @return int
     */
    int insertUser(User user);

    /**
     * 修改昵称
     * @param user
     * @return
     */
    int updateNickName(User user);

    ArrayList<Basic>  selectBasicByid(User user);
}
